# include <iostream>
using namespace std;

template<typename T, typename T1>
class point
{
public:
    point(T x, T1 y): coor_x(x), coor_y(y){}
public:
    T getX() const
    {
        return coor_x;
    }

    T1 getY() const
    {
        return coor_y;
    }

    void setX(T x)
    {
       coor_x = x; 
    }

    void setY(T1 y)
    {
       coor_y = y; 
    }

private:
    T coor_x;
    T1 coor_y;
};

int main()
{   
    point<int, char> p1(10, 20);
    cout << "x=" << p1.getX()<<", y=" << p1.getY() <<endl;
    p1.setX(100);
    p1.setY('v');
    cout << "x=" << p1.getX()<<", y=" << p1.getY() <<endl;
    return 0;
}